// ? 系统全局字典

/**
 * @description：用户性别
 */
export const genderType = [
  { label: "男", value: 0 },
  { label: "女", value: 1 }
];

/**
 * @description：用户状态
 */
export const userStatus = [
  { label: "启用", value: 1, tagType: "success" },
  { label: "禁用", value: 0, tagType: "danger" }
];

export const userRole = [
  { label: "管理员", value: 0, tagType: "success" },
  { label: "客服中心", value: 1, tagType: "danger" },
  { label: "调度中心", value: 2, tagType: "warning" },
  { label: "中心库房", value: 3, tagType: "info" },
  { label: "分站库房", value: 4, tagType: "info" },
  { label: "分站", value: 5, tagType: "success" },
  { label: "配送中心", value: 6, tagType: "danger" },
  { label: "财务部", value: 7, tagType: "warning" },
  { label: "配送员", value: 8, tagType: "success" }
];

/**
 * @description 任务状态
 */
export const taskStatus = [
  { label: "待货", value: 0, tagType: "info" },
  { label: "待分配", value: 1, tagType: "success" },
  { label: "待领货", value: 2, tagType: "warning" },
  { label: "待配送", value: 3, tagType: "danger" },
  { label: "已完成", value: 4 }
];

/**
 * @description 可被选择的任务状态
 */
export const selectTaskStatus = [
  { label: "待领货", value: 2, tagType: "success" },
  { label: "待配送", value: 3, tagType: "warning" }
];

/**
 * @description 任务类型
 */
export const taskType = [
  { label: "送货收款", value: 1 },
  { label: "退货", value: 2 },
  { label: "换货", value: 3 }
];

/**
 * @description 缴款单类型
 */
export const paymentType = [
  { label: "收款", value: 0, tagType: "success" },
  { label: "退款", value: 1, tagType: "danger" }
];

/**
 * @description 出入库流动类型
 */
export const circulationType = [
  { label: "入库", value: 0, tagType: "success" },
  { label: "出库", value: 1, tagType: "success" }
];

/**
 * @description 出入库流动细节
 */
export const circulationDetail = [
  { label: "进货入库", value: 0, tagType: "success" },
  { label: "调拨入库", value: 1, tagType: "warning" },
  { label: "退货入库", value: 2, tagType: "danger" },
  { label: "调拨出库", value: 3, tagType: "success" },
  { label: "退货出库", value: 4, tagType: "danger" },
  { label: "取货出库", value: 5, tagType: "warning" }
];

/**
 * @description 出入库状态
 */
export const circulationStatus = [
  { label: "进行中", value: 0, tagType: "success" },
  { label: "已完成", value: 1, tagType: "info" },
  { label: "已取消", value: 2, tagType: "danger" }
];

/**
 * @description 订单类型
 */
export const orderType = [
  { label: "配送单", value: 1, tagType: "success" },
  { label: "退货单", value: 2, tagType: "danger" },
  { label: "换货单", value: 3, tagType: "warning" }
];

/**
 * @description 订单状态
 */
export const orderStatus = [
  { label: "新建", value: 0, tagType: "info" },
  { label: "缺货", value: 1, tagType: "danger" },
  { label: "待调度", value: 2, tagType: "warning" },
  { label: "待出库", value: 3, tagType: "warning" },
  { label: "运输中", value: 4, tagType: "warning" },
  { label: "到达分站", value: 5, tagType: "warning" },
  { label: "派送中", value: 6, tagType: "warning" },
  { label: "已完成", value: 7, tagType: "success" },
  { label: "已退货", value: 8, tagType: "success" },
  { label: "已换货", value: 9, tagType: "success" }
];

/**
 * @description 库房等级
 */
export const warehouseLevel = [
  { label: "分站库房", value: 1, tagType: "success" },
  { label: "中心库房", value: 0, tagType: "danger" }
];

/**
 * @description 调拨单状态
 */
export const transferStatus = [
  { label: "待调度", value: 0, tagType: "warning" },
  { label: "已调度", value: 1, tagType: "success" },
  { label: "挂起", value: 2, tagType: "danger" }
];

/**
 * @description 调拨单类型
 */
export const transferOrderType = [
  { label: "配送", value: 1, tagType: "warning" },
  { label: "退货", value: 2, tagType: "success" },
  { label: "换货", value: 3, tagType: "danger" }
];

/**
 * @description 发票类型
 */
export const billStatus = [
  { label: "待领用", value: 0, tagType: "warning" },
  { label: "已领用", value: 1, tagType: "success" },
  { label: "作废", value: 2, tagType: "danger" }
];

/**
 * @description 供应商时间
 */
export const supplierStatus = [
  { label: "一天内", value: 0, tagType: "warning" },
  { label: "一周内", value: 1, tagType: "success" },
  { label: "一月内", value: 2, tagType: "danger" }
];

/**
 * @description 是否标签
 */
export const tfLabel = [
  { label: "是", value: 1, tagType: "success" },
  { label: "否", value: 0, tagType: "danger" }
];
